Single
            class SingleSelector<T>(selectedItem: T?, safeChanges: Boolean) : Selector<T> 
Content copied to clipboard
Realization of Selector with one or without selected element. This realization will always have empty selectedItems when nothing selected and one element in selectedItems when something selected. Contains selectedItem value for simple access to currently selected item.
On calling of toggleSelection previous selection will be erased and itemUnselected will emit this element.
Parameters
safe
Set to false to disable using of mutex for synchronizing changes on toggleSelection
Constructors
SingleSelector
                          
                    Link copied to clipboard
                        fun <T> SingleSelector(selectedItem: T? = null, safeChanges: Boolean = true)
Content copied to clipboard
Functions
clear
                    Link copied to clipboard
                        force
                    Link copied to clipboard
                        force
                    Link copied to clipboard
                        toggle
                    Link copied to clipboard
                        Properties
itemSelected
                          
                    
                  Link copied to clipboard
                        itemUnselected
                          
                    
                  Link copied to clipboard
                        selectedItem
                          
                    
                  Link copied to clipboard
                        selectedItems
                          
                    
                  Link copied to clipboard